package com.example.zbh.dsliao.presenter;

import com.example.zbh.dsliao.model.Music_Detail_Model;
import com.example.zbh.dsliao.model.entity.MusicMessage;
import com.example.zbh.dsliao.model.modelinterface.ManagerDataListener;
import com.example.zbh.dsliao.presenter.BasePresenter;
import com.example.zbh.dsliao.presenter.presenterinterface.HandMessageListener;
import com.example.zbh.dsliao.ui.viewinterface.ShowDownLoaderResultListener;

import java.util.List;

/**
 * Created by zbh on 15/12/5.
 */
public class Music_Detail_Presenter extends BasePresenter<ShowDownLoaderResultListener> implements HandMessageListener {
    private ShowDownLoaderResultListener resultListener;
    private ManagerDataListener dataListener;

    public Music_Detail_Presenter(ShowDownLoaderResultListener resultListener) {
        this.resultListener = resultListener;
        dataListener = new Music_Detail_Model();


    }
    public void receiveMusicMessage(String url){
//        int zeroId = message.getZeroId();
//        int oneId = message.getOneId();
//        int position = message.getPosition();
//        String url = "http://ting.hotchanson.com/songs/downwhite?v=v8.3.0.2015110214&song_id=" +
//                zeroId + "%2C" +oneId + "&alf=alf702008&s=s200&hid=2555978229851547&" +
//                "tid=0&utdid=VMHiWuA6%2FAoDAAlPEVZoReUw&uid=868047020810943&f=f62&net=2&app=ttpod&imsi=";
        dataListener.sendResult(url,this);


    }

    @Override
    public void handResult(List list) {

        resultListener.showResult(list);
    }

    @Override
    public void handOtherResult(List list) {

    }
}
